package com.lzy.mall.search.feign;

import com.lzy.mall.common.utils.ResultUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author lzy
 * @date 2021/9/16 15:23
 */
@FeignClient("mall-product")
public interface ProductFeignService {

    @GetMapping("/attr/info/{attrId}")
    ResultUtils getAttrsInfo(@PathVariable("attrId") Long attrId);

    @GetMapping("/brand/infos")
    ResultUtils brandInfo(@RequestParam("brandIds") List<Long> brandIds);
}
